<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- React核心包 最先引入 提供一个对象React -->
  <script src="../../../React/react.development.js"></script>
  <!-- React操作DOM的包 提供一个一个对象ReactDOM -->
  <script src="../../../React/react-dom.development.js"></script>
  <!-- 引入babel，用户解析jsx为js -->
  <script type="text/javascript" src="../../../React/babel.min.js"></script>
  <title>Document</title>
</head>

<body>
  <div id="app"></div>
  <script type="text/babel">
    const arr = ['mark', 'jon', 'son']
    const re = (<ul>{arr.map(item => <li>{item}</li>)}</ul>)
    // 创建容器并渲染虚拟DOM
    ReactDOM.createRoot(document.getElementById('app')).render(re)
  </script>
</body>

</html>